﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.interactive.View" %>
<%@ Import Namespace="X.Common" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>师生互动</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/interactive.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/Common.js"></script>
  <style type="text/css">
    .line{ width:650px; height:1px; overflow:hidden; display:table; background-color:#ccc; margin-top:10px; }
  </style>
</head>
<body>
    <div class="m_top"></div>
    <div class="block">
      <div style="width:650px; height:22px;">
        <div class="title">答疑信息</div>
      </div>
      <div class="spe_line_2"></div>
      <% if (model.ID != -1) { %>
      <div class="box_1">
        <div class="fl tr left">学员姓名：</div>
        <div class="fl dis_r"><%=model.UserName%></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">提交时间：</div>
        <div class="fl dis_r"><%=model.AddDate%></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">内容：</div>
        <div class="fl dis_r"><%=Utils.StrFormat(model.Content)%></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">是否已回复：</div>
        <div class="fl dis_r"><%=model.IsReply ? "已回复" : "未回复" %></div>
      </div>
      <div class="line"></div>
      <% if (model.IsReply && model.ReplyInfo != null && model.ReplyInfo.Count > 0) { %>
      <% foreach (System.Collections.Generic.KeyValuePair<string, DateTime> kvp in model.ReplyInfo) { %>
      <div class="box_1">
        <div class="fl tr left">回复内容：</div>
        <div class="fl dis_r"><%=Utils.StrFormat(kvp.Key)%></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">回复时间：</div>
        <div class="fl dis_r"><%=kvp.Value%></div>
      </div>
      <div class="line"></div>
      <% } %>
      <% } %>
      <div style="margin:20px 0 0 110px;">
        <img alt="" src="/images/btn/back.gif" class="cursor" onclick="history.back();" />
        &nbsp;&nbsp;<a href="/interactive/Reply.aspx?id=<%=model.ID %>"><img alt="" src="/images/btn/reply.gif" /></a>
      </div>
      <% } else { %>
      <div class="box_1"><p>数据读取错误</p></div>
      <div style="margin:20px 0 0 110px;"><img alt="" src="/images/btn/back.gif" class="cursor" onclick="history.back();" /></div>
      <% } %>
    </div>
</body>
</html>
